package log4j;

import org.apache.log4j.Logger;
import org.apache.log4j.Level;
import org.apache.log4j.SimpleLayout;
import org.apache.log4j.ConsoleAppender;

public class Test {

	public static void main(String[] args) {
		SimpleLayout layout = new SimpleLayout();

		ConsoleAppender appender = new ConsoleAppender(layout);
		Logger x = Logger.getLogger("a");
		Logger x_z = Logger.getLogger("a.z");
		x.addAppender(appender);
		x.setLevel(Level.ERROR);
		x.debug("Here is DEBUG");
		x_z.warn("Here is WARN");
		x_z.warn("Here is WARN");
		x.error("Here is ERROR");
		x.fatal("Here is FATAL");
		
		
	

	}
}